//
//  FourthVCTableViewCell.m
//  HomeFurnishing
//
//  Created by dllo on 16/4/7.
//  Copyright © 2016年 YMing. All rights reserved.
//

#import "FourthVCTableViewCell.h"

@implementation FourthVCTableViewCell
-(void)dealloc
{
    [_imgView release];
    [_title release];
    [super dealloc];
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
        //_imgView.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_imgView];
        [_imgView release];
        
        self.title = [[UILabel alloc] init];
        //_title.backgroundColor = [UIColor greenColor];
        _title.font = [UIFont systemFontOfSize:18];
        _title.textColor = [UIColor whiteColor];
        [self.imgView addSubview:_title];
        [_title release];
}
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    _imgView.frame = CGRectMake(0, 0, SCREEN_WIDTH, 200);
    _title.frame = CGRectMake(0, _imgView.frame.size.height - 30, 200, 30);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
